<template>
  <el-main>
    <h1>问卷管理</h1>
    <el-row>
      <el-button plain @click="$router.push('/login')">登录</el-button>
      <el-button plain @click="$router.push('/questionnaire')">问卷列表</el-button>
    </el-row>
    <div style="position:fixed;text-align:center;bottom:0;margin:0 auto;width:100%;color: #5c6b77">
      医患问卷后台管理系统&nbsp;TEL:18633813296&nbsp;
      @{{year}}&nbsp;All rights reserved&nbsp;
      <a target="_blank" style="color: #5c6b77" href="https://beian.miit.gov.cn/">粤ICP备2021156152号</a>
    </div>
  </el-main>
</template>

<script>
export default {
  name: "Home",
  data() {
    return {
      year: ''
    }
  },
  created() {
    this.year = new Date().getFullYear();
    if (this.$store.state.token != null) this.$router.push({path: "/questionnaire"});
  }
}
</script>

<style scoped>

</style>